package za.ac.cput.inheritance.model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author Enkosi
 */
public class UnderGrad extends Student{
    public UnderGrad(String name, String surname, double loanAmount){
        super(name, surname, loanAmount);
    }
 
    @Override
    public boolean interest(Student student) {
        if(student == null)
            return false;
        System.out.println( ("R" + (student.getLoanAmount() * 0.12 + student.getLoanAmount())) );
        return true;
    }
    
}
